package com.ruoyi.project.battle.battle.domain;

import com.ruoyi.project.system.role.domain.Role;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.List;

/**
 * 战场用户信息管理对象 battle_user
 * 
 * @author ruoyi
 * @date 2021-09-22
 */
public class BattleUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 战场用户自增id */
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 用户口令 */
    @Excel(name = "用户口令")
    private String userPass;

    /** 用户真实姓名 */
    @Excel(name = "用户真实姓名")
    private String realName;

    /** 工作单位 */
    @Excel(name = "工作单位")
    private String workAddress;

    /** 职务 */
    @Excel(name = "职务")
    private String duty;


    private List<Role> roleList;


    private Long roleId;

    public List<Role> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<Role> roleList) {
        this.roleList = roleList;
    }


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setUserPass(String userPass)
    {
        this.userPass = userPass;
    }

    public String getUserPass()
    {
        return userPass;
    }
    public void setRealName(String realName)
    {
        this.realName = realName;
    }

    public String getRealName()
    {
        return realName;
    }
    public void setWorkAddress(String workAddress)
    {
        this.workAddress = workAddress;
    }

    public String getWorkAddress()
    {
        return workAddress;
    }
    public void setDuty(String duty)
    {
        this.duty = duty;
    }

    public String getDuty()
    {
        return duty;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return "BattleUser{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", userPass='" + userPass + '\'' +
                ", realName='" + realName + '\'' +
                ", workAddress='" + workAddress + '\'' +
                ", duty='" + duty + '\'' +
                ", roleList=" + roleList +
                ", roleId=" + roleId +
                '}';
    }
}
